﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Reflection;

namespace SkillBook.SearchBook
{
    [Serializable]
    public class BookItem
    {
        public string ISBN;
        public string Title;
        public string Author;
        public string Link;
        public string CoverLink;
        public string Description;

        public BookItem(string sISBN, string sTitle, string sAuthor, string sLink, string sCoverLink, string sDescription)
        {
            ISBN = sISBN;
            Title = sTitle;
            Author = sAuthor;
            Link = sLink;
            CoverLink = sCoverLink;
            Description = sDescription;
        }
    }

    public interface ISearchBook
    {
        IList<BookItem> SearchBook(string keyWord);
    }

    public abstract class ShowBookStrategy
    {
        abstract public void ShowBook(IList<BookItem> books);
    }
}
